package com.skt.domain.VO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@Schema(description = "商家商品创建结果")
public class MerchantCostumeCreateResultVO {
    
    @Schema(description = "商品ID", example = "100001")
    private Long costumeId;
    
    @Schema(description = "商品名称", example = "汉服-唐制齐胸襦裙")
    private String costumeName;
    
    @Schema(description = "商品状态：0-待审核 1-审核通过 2-审核驳回", example = "0")
    private Integer status;
    
    @Schema(description = "状态描述", example = "待审核")
    private String statusDesc;
    
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    
    @Schema(description = "预计审核时间")
    private LocalDateTime expectAuditTime;
    
    @Schema(description = "下一步指引", example = "商品已提交审核，请耐心等待平台审核结果")
    private String nextStepGuide;
    
    public MerchantCostumeCreateResultVO() {}
    
    public MerchantCostumeCreateResultVO(Long costumeId, String costumeName, Integer status) {
        this.costumeId = costumeId;
        this.costumeName = costumeName;
        this.status = status;
        this.statusDesc = getStatusDescription(status);
        this.createTime = LocalDateTime.now();
        this.expectAuditTime = LocalDateTime.now().plusHours(24);
        this.nextStepGuide = "商品已提交审核，请耐心等待平台审核结果";
    }
    
    private String getStatusDescription(Integer status) {
        switch (status) {
            case 0: return "待审核";
            case 1: return "审核通过";
            case 2: return "审核驳回";
            default: return "未知状态";
        }
    }
}